<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>金贵银业</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!--标准mui.css-->
    <link rel="stylesheet" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/mui.min.css">
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/app.css" />
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/zhaojinyin_index.css" />
    <link href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <script src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/mui.min.js"></script>
    <style>
        .mui-control-content {
            background-color: white;
            min-height: 215px;
        }

        .mui-control-content .mui-loading {
            margin-top: 50px;
        }

        a.mui-active {
            border-bottom: 2px solid #BB9E77 !important;
            color: #BB9E77 !important;
        }

        .dianpulist li {
            float: left;
            width: 25%;
            text-align: center;
        }

        .dianpulist li img {
            width: 95% !important;
            border: 1px solid #EEEEEE;
        }

        .dianpulist li p {
            width: 95% !important;
            margin: 0 auto;
            margin-top: -27px;
            z-index: 1;
            position: relative;
            background: rgba(0, 0, 0, .3);
            text-align: center;
            color: #FFFFFF;
        }
    </style>
    <script type="text/javascript" charset="utf-8">
        mui.init({
            swipeBack: true //启用右滑关闭功能
        });
        (function($, doc) {
            $.plusReady(function() {
                //我的订单
                doc.getElementById("shoucang_dianpu").addEventListener('tap', function() {
                    $.openWindow({
                        url: 'huiyuanzhongxin_shoucangdianpu.html'
                    });
                }, false);
                //我的收藏
                doc.getElementById("shoucang_goods").addEventListener('tap', function() {
                    $.openWindow({
                        url: 'huiyuanzhongxin_shoucanggoods.html'
                    });
                }, false);
                //我的收藏
                doc.getElementById("tuijianguanjian").addEventListener('tap', function() {
                    $.openWindow({
                        url: 'huiyuanzhongxin_tuijianguanjian.html'
                    });
                }, false);
            });
        }(mui, document));
    </script>
</head>

<body style="padding-bottom: 150px;">

<div class="mui-bar" style="height: 45px;top: 0;">
    <a class="mui-icon mui-icon-left-nav"  href="/mobile/index.php?act=member_index&op=member_index"></a>
    <!--
        时间：2016-03-24
        描述：右边按钮
    -->
    <a class="mui-pull-right" id="tuijianguanjian" style="line-height: 40px; color: #333333 !important;">推荐关注</a>
    <h1 class="mui-title"><a href="/mobile/index.php?act=member_index&op=fov_goods"><button id="shoucang_goods" style="height: 40px;padding: 0 22px;border-bottom-right-radius: 0;border-top-right-radius: 0;color: #bd9f61;">宝贝</button></a><button id="shoucang_dianpu" style="height: 40px;padding: 0 22px; background: #bd9f61;border: #BB9E77;border-bottom-left-radius: 0;border-top-left-radius: 0;color: #FFFFFF;">店铺</button></h1>
</div>

<div class="mui-content" style="margin-top: 46px; background: #FFFFFF;">
    <?php if(!empty($output['favorites_list']) && is_array($output['favorites_list'])){?>
        <!-- 循环店铺列表-->
    <?php foreach($output['favorites_list'] as $key=>$favorites){?>
    <div style="background: #FFFFFF !important; float: left;padding-bottom: 10px; width: 100%">
        <a href="<?php echo urlShop('show_store', 'index', array('store_id'=>$favorites['store']['store_id']), $favorites['store']['store_domain'])?>"><img src="<?php echo getStoreLogo($favorites['store']['store_avatar']);?>" style="vertical-align: middle; width: 60px;margin: 8px;" /></a>
        <label style=" color: #333333;"><a href="<?php echo urlShop('show_store', 'index', array('store_id'=>$favorites['store']['store_id']), $favorites['store']['store_domain'])?>" ><?php echo $favorites['store']['store_name'];?></a></label>
        <div style="padding:0px 10px 10px 10px; color: #666666;">热销商品
            <label style="float: right;color: #bd9f61"><a href="<?php echo urlShop('member_favorite_store', 'more', array('store_id' => $favorites['store']['store_id']));?>" class="more">查看更多></a>&gt;</label>
        </div>

        <?php if (!empty($favorites['goods']['hot'])) {?>
        <ul class="dianpulist">
            <?php $i=0;  ?>
            <?php foreach ($favorites['goods']['hot'] as $goods) {?>
                 <?php $i++; if($i<5){ ?>  <!-- 当$i<5时循环出<li>标签-->
            <li><a href="index.php?act=goods&goods_id=<?php echo $goods['goods_id'];?>" title="<?php echo $goods['goods_name'];?>" target="_blank"><img src="<?php echo thumb($goods, 240);?>">
                <p>￥<?php echo $goods['goods_promotion_price'];?></p></a>
            </li>

                <?php } ?>
            <?php } ?>
        </ul>
        <?php } ?>
    </div>

    <div style="background: #EEEEEE; height: 15px; width: 100%; float: left; border: 1px solid #DDDDDD;margin-bottom: 15px;"></div>
    <?php } ?>

        <div class="mui-content-padded" style="text-align:center;clear: both;">
            <div class="pagination"><?php echo $output['show_page']; ?></div>
        </div>
    <?php } ?>
    </div>



</body>

</html>